//
//  SelecterToolsScrolView.h
//  SelecterTools
//
//  Created by zhao on 16/3/15.
//  Copyright © 2016年 xincheng. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^BtnClick)(UIButton *btn);

typedef enum : NSUInteger {
    TriggerTypeOfBtnClick,
    TriggerTypeOfScrViewScroll,
} TriggerType;




@interface SelecterToolsScrolView : UIScrollView


-(void)updateSelecterToolsIndex:(NSInteger )index;

//选中字体不变
-(instancetype)initWithFrame:(CGRect)frame bottomLineSpace:(CGFloat)bottomLineSpace bottomLineSize:(CGSize)bottomLineSize radius:(CGFloat)radius lineColor:(UIColor *)lineColor isShowMiddleLine:(BOOL)isShowMiddleLine titleArr:(NSArray *)titleArr font:(CGFloat)font normalColor:(UIColor *)normalColor selectedColor:(UIColor *)selectedColor andBtnBlock:(BtnClick)btnClick;

//选中字体变大
-(instancetype)initWithFrame:(CGRect)frame bottomLineSpace:(CGFloat)bottomLineSpace bottomLineSize:(CGSize)bottomLineSize radius:(CGFloat)radius lineColor:(UIColor *)lineColor isShowMiddleLine:(BOOL)isShowMiddleLine titleArr:(NSArray *)titleArr font:(UIFont *)font selFont:(UIFont *)selFont normalColor:(UIColor *)normalColor selectedColor:(UIColor *)selectedColor andBtnBlock:(BtnClick)btnClick;

@end






//60
@interface LoginSelecterToolsScrolView : UIScrollView

-(void)updateSelecterToolsIndex:(NSInteger )index;

/**
 * titleArr @[@"企业动态",@"群组分享",@"最近浏览"]
 * norFont 14
 * selFont 22
 */
-(instancetype)initWithFrame:(CGRect)frame titleArr:(NSArray *)titleArr bottomImage:(NSString *)bottomImage norFont:(UIFont *)norFont selFont:(UIFont *)selFont bgColor:(UIColor *)bgColor normalColor:(UIColor *)normalColor selectedColor:(UIColor *)selectedColor andBtnBlock:(BtnClick)btnClick;

@end







//60
@interface HomeSelecterToolsScrolView : UIScrollView

-(void)updateSelecterToolsIndex:(NSInteger )index;

/**
 * titleArr @[@"企业动态",@"群组分享",@"最近浏览"]
 * norFont 14
 * selFont 22
 */
-(instancetype)initWithFrame:(CGRect)frame titleArr:(NSArray *)titleArr bottomImage:(NSString *)bottomImage norFont:(UIFont *)norFont selFont:(UIFont *)selFont andBtnBlock:(BtnClick)btnClick;

@end

